-
Notifications
You must be signed in to change notification settings - Fork 339
adds stream::skip_while combinator #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I just have one comment.
src/stream/stream/mod.rs
Outdated
@@ -51,6 +52,7 @@ use fold::FoldFuture; | |||
use min_by::MinByFuture; | |||
use next::NextFuture; | |||
use nth::NthFuture; | |||
use skip_while::SkipWhile; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's export SkipWhile
(see lines 40-43 above).
The general policy is that we don't re-export Future
types because functions that return them will eventually become async fn
s, while we do export Stream
types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, i see now, makes sense.
bors r+ |
Merge conflict (retrying...) |
Merge conflict |
bors r+ |
223: adds stream::skip_while combinator r=stjepang a=montekki Ref: #129 Stdlib: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.skip_while Co-authored-by: Fedor Sakharov <fedor.sakharov@gmail.com>
Build succeeded
|
Ref: #129
Stdlib: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.skip_while